package com.hqyj.lx.service;

import com.hqyj.lx.pojo.Question;

import java.util.List;

public interface QuestionService {
    //查询全部试题信息
    List<Question> queryAllQuestion();
    //增加一道试题
    int insertOneQuestion(Question one);

    //删除一道试题
    int deleteOneQuestion(int quesId);

    //修改试题
    int updateOneQuestion(Question question);

    //通过id查试题
    Question questionQueryById(int quesId);

    //通过课程名查询试题，用于生成预览试卷
    List<Question> questionQueryByCourseName(String courseName);
    //通过题型进行查询quesType
    List<Question> questionQueryByQuesType(String courseName,String quesType);
}
